<html>
<head><meta charset="utf-8"><title>doc linking error in CI · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html">doc linking error in CI</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="200553327"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200553327" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200553327">(Jun 11 2020 at 14:41)</a>:</h4>
<p>I have a link error in CI that I do not have locally and I think it's because of an unstable flag that I misplaced/incorrectly used</p>
<div class="codehilite"><pre><span></span><code><span class="cp">#[unstable(feature = </span><span class="s">&quot;cstring_from_vec_with_nul&quot;</span><span class="cp">, issue = </span><span class="s">&quot;73179&quot;</span><span class="cp">)]</span><span class="w"></span>
<span class="k">impl</span><span class="w"> </span><span class="n">TryFrom</span><span class="o">&lt;</span><span class="nb">Vec</span><span class="o">&lt;</span><span class="kt">u8</span><span class="o">&gt;&gt;</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">CString</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">type</span> <span class="nc">Error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FromBytesWithNulError</span><span class="p">;</span><span class="w"></span>

<span class="w">    </span><span class="sd">/// See the document about [`from_vec_with_nul`] for more</span>
<span class="w">    </span><span class="sd">/// informations about the behaviour of this method.</span>
<span class="w">    </span><span class="sd">///</span>
<span class="w">    </span><span class="sd">/// [`from_vec_with_nul`]: struct.CString.html#method.from_vec_with_nul</span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">try_from</span><span class="p">(</span><span class="n">value</span>: <span class="nb">Vec</span><span class="o">&lt;</span><span class="kt">u8</span><span class="o">&gt;</span><span class="p">)</span><span class="w"> </span>-&gt; <span class="nb">Result</span><span class="o">&lt;</span><span class="bp">Self</span><span class="p">,</span><span class="w"> </span><span class="bp">Self</span>::<span class="n">Error</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">        </span><span class="bp">Self</span>::<span class="n">from_vec_with_nul</span><span class="p">(</span><span class="n">value</span><span class="p">)</span><span class="w"></span>
<span class="w">    </span><span class="p">}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>


<p>The link <code>from_vec_with_nul</code> fails to find the method in CI, but the method exists (in the PR)</p>
<div class="codehilite"><pre><span></span><code><span class="k">impl</span><span class="w"> </span><span class="n">CString</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="cp">#[unstable(feature = </span><span class="s">&quot;cstring_from_vec_with_nul&quot;</span><span class="cp">, issue = </span><span class="s">&quot;73179&quot;</span><span class="cp">)]</span><span class="w"></span>
<span class="w">     </span><span class="k">pub</span><span class="w"> </span><span class="k">fn</span> <span class="nf">from_vec_with_nul</span><span class="p">(</span><span class="n">v</span>: <span class="nb">Vec</span><span class="o">&lt;</span><span class="kt">u8</span><span class="o">&gt;</span><span class="p">)</span><span class="w"> </span>-&gt; <span class="nb">Result</span><span class="o">&lt;</span><span class="bp">Self</span><span class="p">,</span><span class="w"> </span><span class="n">FromBytesWithNulError</span><span class="o">&gt;</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* ... */</span><span class="w"> </span><span class="p">}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>


<p>I do not have any idea about how to fix that.</p>



<a name="200553552"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200553552" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200553552">(Jun 11 2020 at 14:43)</a>:</h4>
<p>cc <span class="user-mention" data-user-id="116122">@simulacrum</span>, who might know</p>



<a name="200553658"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200553658" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200553658">(Jun 11 2020 at 14:44)</a>:</h4>
<p>please paste a link to the PR</p>



<a name="200553681"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200553681" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200553681">(Jun 11 2020 at 14:44)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/73139">https://github.com/rust-lang/rust/pull/73139</a></p>



<a name="200553774"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200553774" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200553774">(Jun 11 2020 at 14:45)</a>:</h4>
<p><del>See <a href="https://github.com/rust-lang/rust/pull/73139/files/7f3bb398fa90d68c737dd7e00a3813e0620ba472..e9eddacd98506f38480e68454c4e069500752807">https://github.com/rust-lang/rust/pull/73139/files/7f3bb398fa90d68c737dd7e00a3813e0620ba472..e9eddacd98506f38480e68454c4e069500752807</a> I guess</del></p>



<a name="200553973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200553973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200553973">(Jun 11 2020 at 14:46)</a>:</h4>
<p>Sorry <span class="user-mention" data-user-id="255061">@LeSeulArtichaut</span> I just removed a wrong commit</p>



<a name="200554071"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200554071" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200554071">(Jun 11 2020 at 14:47)</a>:</h4>
<p>Oh right links in impls are likely to be annoying hm</p>



<a name="200554105"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200554105" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200554105">(Jun 11 2020 at 14:47)</a>:</h4>
<p>yeah not sure what to do with that maybe cc <span class="user-mention" data-user-id="210316">@GuillaumeGomez</span> on the PR</p>



<a name="200554285"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/doc%20linking%20error%20in%20CI/near/200554285" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/doc.20linking.20error.20in.20CI.html#200554285">(Jun 11 2020 at 14:49)</a>:</h4>
<p>Will do, thanks !</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>